<!--
 * @Author: 支付成功的按钮框
 * @Date: 2020-06-30 11:29:53
 * @LastEditTime: 2020-07-06 17:22:40
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \JK商城\jkshopping\src\pages\payment\pay\fail\components\lose.vue
--> 
<template>
  <div class="successful">
    <!--大盒子-->
    <div class="successful_box">
      <!--失败图标-->
      <div class="icon_box">
        <van-icon class="icon" name="success" />
      </div>
      <!--支付失败字体-->
      <div class="text">
        <p class="successful">支付成功</p>
      </div>
      <!--按钮盒子-->
      <div class="btn_box">
        <!--查看订单按钮-->
        <div class="see_order" @click="seeOrder">
          <p class="name">查看订单</p>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  methods: {
    // 查看订单方法
    seeOrder() {
      this.$router.push("my/orders")
    },
   
  }
};
</script>

<style  lang="scss" scoped>
.successful {
  margin-top: 1px;
  /*大盒子样式*/
  .successful_box {
    width: 100%;
    // height: 200px;
    background-color: #fff;
    text-align: center;
    padding: 20px 0 30px 0;
    box-sizing: border-box;
    /*图标盒子样式*/
    .icon_box {
      /*图标样式*/
      width: 80px;
      height: 80px;
      background-color: rgb(84, 231, 104);
      display: flex;
      justify-content: center;
      align-items: center;
      margin: 0 auto;
      border-radius: 50%;
      .icon {
        font-size: 30px;
        color: #fff;
      }
    }

    /*支付成功字体*/
    .text {
      margin-top: 20px;
      .successful {
        color: #ccc;
      }
    }
    /*按钮盒子样式*/
    .btn_box {
      display: flex;
      align-items: center;
      justify-content: center;
      margin-top: 20px;
      /*查看订单按钮样式*/
      .see_order {
        width: 80px;
        height: 30px;
        border: 1px solid #ccc;
        margin-right: 10px;
        /*按钮字体样式*/
        .name {
          line-height: 30px;
        }
      }
      /*重新支付按钮样式*/
      .again_pay {
        width: 80px;
        height: 30px;
        border: 1px solid #ccc;
        background-color: rgb(230, 74, 105);
        /*按钮字体样式*/
        .name {
          line-height: 30px;
          color: #fff;
        }
      }
    }
  }
}
</style>